package com.huadi.ssm.service;


import com.huadi.ssm.mapper.CostMapper;
import com.huadi.ssm.po.Cost;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class CostServiceImpl implements CostService {

    @Autowired
    private CostMapper costMapper;

    @Override
    public int add(Cost cost) {
        return costMapper.add(cost);
    }

    @Override
    public int edit(Cost cost) {
        return costMapper.edit(cost);
    }

    @Override
    public int editForRearcher(Cost cost) {
        return costMapper.editForRearcher(cost);
    }

    @Override
    public int delete(String ids) {
        return costMapper.delete(ids);
    }

    @Override
    public List<Cost> findList(Map<String, Object> queryMap) {
        return costMapper.findList(queryMap);
    }

    @Override
    public List<Cost> findAll() {
        return costMapper.findAll();
    }

    @Override
    public int getTotal(Map<String, Object> queryMap) {
        return costMapper.getTotal(queryMap);
    }
}
